#pragma once
#include <nice2d/entity.h>

class Anchor
{
public:
    Anchor();
    virtual ~Anchor();
public:
    void setXOffset(float offset);
    void setYOffset(float offset);
    sf::Vector2f getOffset()const;

    void setHAlignment(HMode mode);
    HMode getHAligment()const;

    void setVAlignment(VMode mode);
    VMode getVAlignment()const;

    void setRotate(float angle);
    float getRotate()const;

    virtual void updateAnchor() = 0;
private:
    std::unique_ptr<class AnchorData> data;
};
